home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / OutOfPhase1.01Source / OutOfPhase Folder / Level 0 Macintosh 07Aug94 / Definitions.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-01  |  1.5 KB  |  58 lines  |  [TEXT/KAHL]

  1. /* Definitions.h */
  2.  
  3. #ifndef Included_Definitions_h
  4. #define Included_Definitions_h
  5.  
  6. /* Definitions module depends on: */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10.  
  11. /* generally useful values and types */
  12. #ifdef __cplusplus
  13.     #define NIL (0)
  14. #else
  15.     #define NIL ((void*)0L)
  16. #endif
  17. #define True (0 == 0)
  18. #define False (0 != 0)
  19. typedef int MyBoolean;
  20. #define CODE4BYTES(a,b,c,d) ((a)*(1L << 24) + (b)*(1L << 16) + (c)*(1L << 8) + (d))
  21.  
  22. /* available operating systems */
  23. #define OSTYPEMACINTOSH (CODE4BYTES('M','A','C','S'))
  24. #define OSTYPEWIN16 (CODE4BYTES('W','n','3','1'))
  25. #define OSTYPEUNKNOWN (CODE4BYTES('W','a','t','\?'))
  26.  
  27. /* available processor types */
  28. #define PROC68000 (CODE4BYTES('M','6','8','0'))
  29. #define PROC68020 (CODE4BYTES('M','6','8','2'))
  30. #define PROC80386 (CODE4BYTES('i','3','8','6'))
  31. #define PROCUNKNOWN (CODE4BYTES('D','u','m','b'))
  32.  
  33. /* what operating system are we running on. */
  34. #define CURRENTOSTYPE (OSTYPEMACINTOSH)
  35.  
  36. /* what processor are we running on */
  37. #ifdef THINK_C
  38.     #if __option(mc68020)
  39.         #define CURRENTPROCTYPE (PROC68020)
  40.     #else
  41.         #define CURRENTPROCTYPE (PROC68000)
  42.     #endif
  43. #else
  44.     #define CURRENTPROCTYPE (PROC68000)
  45. #endif
  46.  
  47. /* what line feed string is used on this system? */
  48. #define SYSTEMLINEFEED "\x0d"
  49.  
  50. /* generalized optimized block move operation.  Blocks will be handled */
  51. /* correctly even if the overlap */
  52. void                MoveData(char* Source, char* Destination, long NumBytes);
  53.  
  54. /* generalized block move operation.  Blocks can't overlap */
  55. void                CopyData(char* Source, char* Destination, long NumBytes);
  56.  
  57. #endif
  58.